package Eyjafjalla.action;

import Eyjafjalla.helper.EyjafjallaHelper;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;

import java.util.ArrayList;

public class RandomBuffAction extends AbstractGameAction {

    public RandomBuffAction(int amt){
        this.amount = amt;
    }

    @Override
    public void update() {
        ArrayList<AbstractCard> cake = EyjafjallaHelper.getCakeCards(this.amount);
        for(int i =cake.size()-1;i>=0;i--){
            EyjafjallaHelper.setCakePowerToCreature(cake.get(i), AbstractDungeon.player);
        }
        this.isDone = true;
    }
}
